<?php
class My_View_Helper_FormTextDate extends Zend_View_Helper_Abstract
{
       
        public function formTextDate($key,$row=array(),$keydb=NULL)
        {
            
            if(is_null($keydb)) $keydb=$key;
            
            if(is_array($row)){
                
                if(isset($row[$keydb]))$value=$this->view->dateTo($row[$keydb]);
                else $value=NULL;
                
            }else{
                $value=$this->view->dateTo($row);
            }

            return $this->view->formText($key,$value,array('class'=>'fecha'));
        }   
}